home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980901-19981211 / 000039_news@newsmaster….columbia.edu _Sat Sep 19 11:45:13 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA06094
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sat, 19 Sep 1998 11:45:11 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA27307
  7.     for kermit.misc@watsun; Sat, 19 Sep 1998 11:45:11 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!newshub.northeast.verio.net!newsserver.jvnc.net!post.servtech.com!hal9000.buf.servtech.com!spamguard!rchandra
  9. From: rchandra.spamguard@spamguard.letter.com
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: set login userid \%1 not working
  12. Date: 19 Sep 1998 15:34:05 GMT
  13. Organization: Verio New York
  14. Lines: 39
  15. Message-ID: <6u0itd$742$1@post.servtech.com>
  16. References: <35FF2D1E.D61C80CA@thermeon.com> <6tnfqs$im0$1@apakabar.cc.columbia.edu>
  17. Reply-To: rchandra.spamguard@spamguard.letter.com
  18. NNTP-Posting-Host: hal9000.buf.servtech.com
  19. Originator: 0x804b6c0@0x804b560
  20. Xref: news.columbia.edu comp.protocols.kermit.misc:9214
  21.  
  22. In article <6tnfqs$im0$1@apakabar.cc.columbia.edu>,
  23. Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
  24. >I do not remember why command quoting is turned off for the
  25. >SET LOGIN USER and SET TELNET ENVIRONMENT USER commands but 
  26. >it is and the result is that those commands will not evaluate
  27. >variables.
  28. >
  29. >However, all is not lost.  You can do what you want in a slightly
  30. >roundabout manner.
  31. >
  32. >  ASK \%1 {Username? }
  33. >  ASSIGN SET_LOGIN_USER SET LOGIN USER \%1
  34. >  DO SET_LOGIN_USER
  35. >  UNDEF SET_LOGIN_USER
  36. >
  37. >What this sequence does is create a macro called SET_LOGIN_USER 
  38. >whose definition is "SET LOGIN USER <name>" where <name> is
  39. >the contents of \%1 as retrieved in the ASK command.  The DO
  40. >command is then used to execute the macro definition and UNDEF
  41. >is used to undefine the macro.
  42. >
  43. >    Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  44. >                 The Kermit Project * Columbia University
  45. >              612 West 115th St #716 * New York, NY * 10025
  46. >  http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org
  47.  
  48. Wow!  This is quite handy.  Nice hack.  I also notice that "set host"
  49. can't take variables.  Basically, I wanted to use the "host" program
  50. to look up my MX record and use it as an argument to set host so that
  51. I can send an ETRN command (open !read ..., set host \%h 25).  But
  52. that didn't quite work :^(.  So the most I have now is a warning in my
  53. syslog that my mail exchanger host may have changed, and that I'd
  54. better update my script.  Now you've given me a good idea to "update"
  55. it permanently! :^) :^) :^)
  56. -- 
  57. Oooooo-oooo-oooo-ooooo, Oooooo-oooo-oooo-ooooo, Ooooo-weem-oh-wum-ooo-ayyy
  58. In the jungle, the silicon jungle, the process sleeps tonight.
  59. Joe Philipps <rchandra-nospam@letter.com> http://www.servtech.com/~rchandra/
  60. You know what you have to do to send email to me successfully :^)